@import '~styles/colors.less';

@comboboxHeight: 38px;

.combobox {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  max-width: 480px;
  font-size: 10px;
  text-align: left;
  height: @comboboxHeight;
  border: solid 1px @chromeBordersColor;
  background-color: @chromeBackgroundDarkerColor;
  border-radius: 3px;

  &.small {
    max-width: 120px;
  }

  &:hover, &.opened {
    border-color: @primary;
  }

  &.opened {
    border-radius: 3px 3px 0 0;
  }
}

.selectedText {
  position: relative;
  padding: 0px 12px;
  line-height: @comboboxHeight;
  font-size: 10px;
  display: inline-block;
  float: left;
  color: @chromeTextColor;
}

.button {
  display: inline-block;
  float: right;
  width: @comboboxHeight;
  height: @comboboxHeight;
  color: @chromeTextColor;
  text-align: center;

  :global i {
    line-height: @comboboxHeight;
    font-size: 11px;
  }
}

// White areas
.white {
  background-color: transparent;
  border-color: @adminInputBorders;
  color: @adminText;

  .selectedText {
    color: @adminText;
  }

  .button {
    color: @adminText;
    border-color: @adminInputBorders;
  }

  &:hover {
    .combobox {
      border-color: @primary;
    }

    .button {
      color: @adminText;
      background-color: transparent;
    }
  }
}
